/********************************************************************
  Copyright by PCI, 2002-10-08
  File Name: db_ppm_express_element_var_param.cxx
  Created Date: 2002-10-08 
  Author: Machine
  Version: 1.0 
  Last Version Date: 
  Version Date:
*******************************************************************/
/********************************************************************
  Copyright by PCI, 2002-10-08
  Class Name: CTable_PPM_EXPRESS_ELEMENT_VAR_PARAM
  Created Date: 2002-10-08 
  Author: Machine
  Defined File: db_ppm_express_element_var_param.hxx
  Last Version Date: 
  Version Date:
*******************************************************************/
#include "table_ppm.h"

CTable_PPM_EXPRESS_ELEMENT_VAR_PARAM::CTable_PPM_EXPRESS_ELEMENT_VAR_PARAM( )
 :NPCRecordSet( )
{
  setTableName( "PPM_EXPRESS_ELEMENT_VAR_PARAM" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  ELEMENT_ID.setField( "ELEMENT_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( ELEMENT_ID );
  PRICING_REF_OBJ_ID.setField( "PRICING_REF_OBJ_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( PRICING_REF_OBJ_ID );
  OWNER_OBJ_TYPE.setField( "OWNER_OBJ_TYPE", DATA_DOUBLE, 22, 0 );
  makeTableItem( OWNER_OBJ_TYPE );
  OWNER_OBJ_ID.setField( "OWNER_OBJ_ID", DATA_CHAR, 9, 0 );
  makeTableItem( OWNER_OBJ_ID );
  ATTR_ID.setField( "ATTR_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( ATTR_ID );
  ATTR_VALUE_TYPE.setField( "ATTR_VALUE_TYPE", DATA_CHAR, 2, 0 );
  makeTableItem( ATTR_VALUE_TYPE );
}


CTable_PPM_EXPRESS_ELEMENT_VAR_PARAM::CTable_PPM_EXPRESS_ELEMENT_VAR_PARAM( NPConnection& pcldb )
 :NPCRecordSet( pcldb )
{
  setTableName( "PPM_EXPRESS_ELEMENT_VAR_PARAM" );
  prepareTable();
  prepareQuery();
 
  ID.setField( "ID", DATA_DOUBLE, 22, 1 );
  makeTableItem( ID );
  makeKeyItem( ID ); 
  ELEMENT_ID.setField( "ELEMENT_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( ELEMENT_ID );
  PRICING_REF_OBJ_ID.setField( "PRICING_REF_OBJ_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( PRICING_REF_OBJ_ID );
  OWNER_OBJ_TYPE.setField( "OWNER_OBJ_TYPE", DATA_DOUBLE, 22, 0 );
  makeTableItem( OWNER_OBJ_TYPE );
  OWNER_OBJ_ID.setField( "OWNER_OBJ_ID", DATA_CHAR, 9, 0 );
  makeTableItem( OWNER_OBJ_ID );
  ATTR_ID.setField( "ATTR_ID", DATA_DOUBLE, 22, 0 );
  makeTableItem( ATTR_ID );
  ATTR_VALUE_TYPE.setField( "ATTR_VALUE_TYPE", DATA_CHAR, 2, 0 );
  makeTableItem( ATTR_VALUE_TYPE );
}

CTable_PPM_EXPRESS_ELEMENT_VAR_PARAM::~CTable_PPM_EXPRESS_ELEMENT_VAR_PARAM( )
{
    close();
}

